package com.wayhome.srpingbootmybatis.placeCloud.controller;

import com.wayhome.srpingbootmybatis.config.ApiResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/api/test")
public class TmpController {

    @Value("${placecloud.checkOTC:false}")
    private boolean checkOtc;


    @PostMapping(value = "/getCheckOtc")
    public ApiResult<String> getCheckOtc() {
       return ApiResult.success("checkOtc:" + checkOtc);
    }
}
